Documentation > CMS Template API Library > WysiwygParams > AddButtons(List[FeatureType])
AddButtons
This function is used to add a set of buttons to the wysiwyg. The order that they are added is the order that they will displayed on the screen.
public System.Void AddButtons(List[FeatureType])
Parameters
Name | Description | Type |
---|---|---|
buttons | The list of buttons. | List<FeatureType> |
Code Example
C#
Sample:
List<FeatureType> buttons = new List<FeatureType>(); buttons.Add(FeatureType.copy); buttons.Add(FeatureType.cut); buttons.Add(FeatureType.paste); buttons.Add(FeatureType.Separator); WysiwygParams wParams = new WysiwygParams(); wParams.AddButtons(buttons); Input.ShowWysiwyg("Page Body", "page_body", wParams);